package com.banyuan.HomeWork.classrelated.three;

public class Calculator {
    int a;
    int b;

    public Calculator() {
    }

    public Calculator(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    public int addition() {
        int i = this.a + this.b;
        System.out.println(i);
        return i;
    }

    public int subration() {
        int i = this.a + this.b;
        System.out.println(i);
        return i;
    }


    public int multiplication() {
        int i = this.a * this.b;
        System.out.println(i);
        return i;
    }

    public int division() {
        int i = this.a / this.b;
        System.out.println(i);
        return i;
    }
}
